


function get_json(f){
  var root = null;
  d3.json(f, function(json){
    root = json
    console.log(root);
    // root.fixed = true;
  })
  return root
}


function test(){
	var nodes = [];
	var links = [];

	for(var i = 0; i < 1000 ; i ++ ) {
	  nodes.push({
	    id: i,
	    text: i+"1"
	  });
	}
	links = d3.range(nodes.length - 1).map(function(i) {
	  return {
	    source: Math.floor(Math.sqrt(i)),
	    target: i + 1 
	  };
	});
	return {l: links, n:nodes};

}